package com.factoryMethod.factoryTwo;

/**
 * @author Vhong
 * @version 1.0
 */
public interface ICar {
    public void show();
}
class Car implements ICar{
    private Engine engine;
    private Wheel wheel;
    private Underpan underpan;

    public Car(Engine engine, Wheel wheel, Underpan underpan) {
        this.engine = engine;
        this.wheel = wheel;
        this.underpan = underpan;
    }

    @Override
    public void show() {
        System.out.println("这汽车有....");
    }
}